package com.bds.wm.action;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.bds.wm.model.common.Result;
import com.bds.wm.utils.Const;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class businessCircleController {
    @RequestMapping("/service/data/getTb_hotShop")
    @ResponseBody
    public Result getTb_hotShop(String star,String end,String store){
        Result result = new Result();
        String str = "[{\"store\":\"肯德基（大宁店）\",\"slases\":\"5000\",\"ta\":\"5000\",\"tayoy\":\"0.15\",\"tc\":\"18.5\"},{\"store\":\"肯德基（大宁店\",\"slases\":\"1000\",\"ta\":\"1000\",\"tayoy\":\"0.15\",\"tc\":\"18\"},{\"store\":\"肯德基（大宁店）\",\"slases\":\"10000\",\"ta\":\"10000\",\"tayoy\":\"0.15\",\"tc\":\"18\"},{\"store\":\"肯德基（大宁店）\",\"slases\":\"5000\",\"ta\":\"5000\",\"tayoy\":\"0.15\",\"tc\":\"18.5\"},{\"store\":\"肯德基（大宁店）\",\"slases\":\"1000\",\"ta\":\"1000\",\"tayoy\":\"0.15\",\"tc\":\"18\"},{\"store\":\"肯德基（大宁店)\",\"slases\":\"10000\",\"ta\":\"10000\",\"tayoy\":\"0.15\",\"tc\":\"18\"},{\"store\":\"肯德基（大宁店）\",\"slases\":\"5000\",\"ta\":\"5000\",\"tayoy\":\"0.15\",\"tc\":\"18.5\"},{\"store\":\"肯德基（大宁店）\",\"slases\":\"1000\",\"ta\":\"1000\",\"tayoy\":\"0.15\",\"tc\":\"18\"},{\"store\":\"肯德基（大宁店\",\"slases\":\"10000\",\"ta\":\"10000\",\"tayoy\":\"0.15\",\"tc\":\"18.5\"}]";
        result.setResult(Const.SUC, JSONArray.parseArray(str));
        return result;
    }

    @RequestMapping("/service/data/getTb_hotProduct")
    @ResponseBody
    public Result getTb_hotProduct(String star,String end,String store){
        Result result = new Result();
        String str = "[{\"product\":\"新塑尔良烤鸡腮堡\",\"store\":\"肯德基（大宁店\",\"tc\":\"18.5\",\"ta\":\"5000\"},{\"product\":\"香辣鸡恩堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18\",\"ta\":\"1000\"},{\"product\":\"劲脆鸡腮堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18\",\"ta\":\"10000\"},{\"product\":\"新塑尔良烤鸡腮堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18.5\",\"ta\":\"5000\"},{\"product\":\"香辣鸡腮堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18\",\"ta\":\"1000\"},{\"product\":\"劲脆鸡腮堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18\",\"ta\":\"10000\"},{\"product\":\"新塑尔良烤鸡服堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18.5\",\"ta\":\"5000\"},{\"product\":\"香辣鸡腮堡\",\"store\":\"肯德基（大宁店\",\"tc\":\"18\",\"ta\":\"1000\"},{\"product\":\"劲脆鸡腮堡\",\"store\":\"肯德基（大宁店）\",\"tc\":\"18\",\"ta\":\"10000\"}]";

        result.setResult(Const.SUC, JSONArray.parseArray(str));
        return result;
    }
}
